package com.rykj.energy.database.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rykj.energy.database.pojo.MessageResult;
import com.rykj.energy.database.pojo.vo.MsgResultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MsgResultMapper extends BaseMapper<MessageResult> {


    IPage<MsgResultVo> findMessages(Page<MsgResultVo> page,@Param("orgIds") List<Integer> orgIds,@Param("camIds") List<String> camIds,@Param("msgTypes") List<String> msgTypes,
                                    @Param("orgName") String orgName,@Param("msgLevel") String msgLevel,@Param("dealState") String dealState,@Param("startTime") String startTime,@Param("endTime") String endTime);

    IPage<Map<String, Object>> selectImgsByDate(Page<Map<String, Object>> page,@Param("endDate") String endDate);

    void updateDealStateById( @Param("ids")String[] ids, @Param("dealRemark") String dealRemark);
}
